/**
 * @author lance.zhou
 */
function ajaxAsync(url, callbackFunction) {
    $.ajax({
        async: true,
        url: url, 
        dataType: "html", 
        success: callbackFunction,
        error: ExceptionMessage
    });
}

function ajaxJsonAsync(url, callbackFunction) {
    $.ajax({
        async: true,
        url: url, 
        dataType: "json", 
        success: callbackFunction,
        error: ExceptionMessage
    });
}

function ExceptionMessage(XMLHttpRequest, textStatus, errorThrown){
    alert(XMLHttpRequest.responseText);
    //alert("Failed due to unknown reason, please try later.");
}
